﻿using System;
using System.Collections.Generic;

namespace Model
{
     ///<summary>
     ///实体类TABLE_UNION_CONST
     ///</summary>
     public class TABLE_UNION_CONST
     {
         private int __ID=0 ;
         private string __TD_TABLE_NAME=string.Empty ;
         private string __TD_FIELD_NAME=string.Empty ;
         private string __TD_FIELD_CONST=string.Empty ;
         private string __TD_FIELD_TYPE=string.Empty ;
         private string __TD_FIELD_LENTH=string.Empty ;
         private int? __IS_SHOW=null ;
         private string __TD_TABLE_CONST=string.Empty ;
         private string __TD_PD_ITEM=string.Empty ;
         private string __TD_PD_DESCRIP=string.Empty ;
         private string __REMARK=string.Empty ;

         private Dictionary<string, bool> __Changed = new Dictionary<string, bool>();


         public TABLE_UNION_CONST()
         {
             this.__Changed.Add("ID",false);
             this.__Changed.Add("TD_TABLE_NAME",false);
             this.__Changed.Add("TD_FIELD_NAME",false);
             this.__Changed.Add("TD_FIELD_CONST",false);
             this.__Changed.Add("TD_FIELD_TYPE",false);
             this.__Changed.Add("TD_FIELD_LENTH",false);
             this.__Changed.Add("IS_SHOW",false);
             this.__Changed.Add("TD_TABLE_CONST",false);
             this.__Changed.Add("TD_PD_ITEM",false);
             this.__Changed.Add("TD_PD_DESCRIP",false);
             this.__Changed.Add("REMARK",false);
         }

         /// <summary>
         /// 将类重置到初始化状态
         /// </summary>
         public void Reset()
         {
             this.__ID =0;
             this.__TD_TABLE_NAME =string.Empty;
             this.__TD_FIELD_NAME =string.Empty;
             this.__TD_FIELD_CONST =string.Empty;
             this.__TD_FIELD_TYPE =string.Empty;
             this.__TD_FIELD_LENTH =string.Empty;
             this.__IS_SHOW =null;
             this.__TD_TABLE_CONST =string.Empty;
             this.__TD_PD_ITEM =string.Empty;
             this.__TD_PD_DESCRIP =string.Empty;
             this.__REMARK =string.Empty;
             this.__Changed["ID"] = false;
             this.__Changed["TD_TABLE_NAME"] = false;
             this.__Changed["TD_FIELD_NAME"] = false;
             this.__Changed["TD_FIELD_CONST"] = false;
             this.__Changed["TD_FIELD_TYPE"] = false;
             this.__Changed["TD_FIELD_LENTH"] = false;
             this.__Changed["IS_SHOW"] = false;
             this.__Changed["TD_TABLE_CONST"] = false;
             this.__Changed["TD_PD_ITEM"] = false;
             this.__Changed["TD_PD_DESCRIP"] = false;
             this.__Changed["REMARK"] = false;
         }

         /// <summary>
         /// 获取类中成员的改变状态
         /// </summary>
         public bool Changed(string strKey)
         {
             return __Changed[strKey];
         }

         /// <summary>
         ///设置或获取类中的[ID]的数据
         /// </summary>
         public int ID
         {
              set{ __ID = value; __Changed["ID"] = true;}
              get{return __ID;}
         }
         /// <summary>
         ///设置或获取类中的[TD_TABLE_NAME]的数据
         /// </summary>
         public string TD_TABLE_NAME
         {
              set{ __TD_TABLE_NAME = value.Replace("'","’"); __Changed["TD_TABLE_NAME"] = true;}
              get{return __TD_TABLE_NAME;}
         }
         /// <summary>
         ///设置或获取类中的[TD_FIELD_NAME]的数据
         /// </summary>
         public string TD_FIELD_NAME
         {
              set{ __TD_FIELD_NAME = value.Replace("'","’"); __Changed["TD_FIELD_NAME"] = true;}
              get{return __TD_FIELD_NAME;}
         }
         /// <summary>
         ///设置或获取类中的[TD_FIELD_CONST]的数据
         /// </summary>
         public string TD_FIELD_CONST
         {
              set{ __TD_FIELD_CONST = value.Replace("'","’"); __Changed["TD_FIELD_CONST"] = true;}
              get{return __TD_FIELD_CONST;}
         }
         /// <summary>
         ///设置或获取类中的[TD_FIELD_TYPE]的数据
         /// </summary>
         public string TD_FIELD_TYPE
         {
              set{ __TD_FIELD_TYPE = value.Replace("'","’"); __Changed["TD_FIELD_TYPE"] = true;}
              get{return __TD_FIELD_TYPE;}
         }
         /// <summary>
         ///设置或获取类中的[TD_FIELD_LENTH]的数据
         /// </summary>
         public string TD_FIELD_LENTH
         {
              set{ __TD_FIELD_LENTH = value.Replace("'","’"); __Changed["TD_FIELD_LENTH"] = true;}
              get{return __TD_FIELD_LENTH;}
         }
         /// <summary>
         ///设置或获取类中的[IS_SHOW]的数据
         /// </summary>
         public int? IS_SHOW
         {
              set{ __IS_SHOW = value; __Changed["IS_SHOW"] = true;}
              get{return __IS_SHOW;}
         }
         /// <summary>
         ///设置或获取类中的[TD_TABLE_CONST]的数据
         /// </summary>
         public string TD_TABLE_CONST
         {
              set{ __TD_TABLE_CONST = value.Replace("'","’"); __Changed["TD_TABLE_CONST"] = true;}
              get{return __TD_TABLE_CONST;}
         }
         /// <summary>
         ///设置或获取类中的[TD_PD_ITEM]的数据
         /// </summary>
         public string TD_PD_ITEM
         {
              set{ __TD_PD_ITEM = value.Replace("'","’"); __Changed["TD_PD_ITEM"] = true;}
              get{return __TD_PD_ITEM;}
         }
         /// <summary>
         ///设置或获取类中的[TD_PD_DESCRIP]的数据
         /// </summary>
         public string TD_PD_DESCRIP
         {
              set{ __TD_PD_DESCRIP = value.Replace("'","’"); __Changed["TD_PD_DESCRIP"] = true;}
              get{return __TD_PD_DESCRIP;}
         }
         /// <summary>
         ///设置或获取类中的[REMARK]的数据
         /// </summary>
         public string REMARK
         {
              set{ __REMARK = value.Replace("'","’"); __Changed["REMARK"] = true;}
              get{return __REMARK;}
         }
    }
}
